package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName sys_user
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysUser implements Serializable {
    /**
     * 用户ID
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private Long userId;

    /**
     * 部门ID
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private Long deptId;

    /**
     * 用户账号
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private String userName;

    /**
     * 用户昵称
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private String nickName;


    @TableField("dept_name")
    private String deptName;


    /**
     * 用户类型（00系统用户）
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private String userType;

    /**
     * 用户邮箱
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private String email;

    /**
     * 手机号码
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private String phonenumber;

    /**
     * 用户性别（0男 1女 2未知）
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private String sex;

    /**
     * 头像地址
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private String avatar;

    /**
     * 密码
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private String password;

    /**
     * 帐号状态（0正常 1停用）
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private String status;

    /**
     * 删除标志（0代表存在 2代表删除）
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private String delFlag;

    /**
     * 最后登录IP
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private String loginIp;

    /**
     * 最后登录时间
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private Date loginDate;

    /**
     * 创建者
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private String createBy;

    /**
     * 创建时间
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private Date createTime;

    /**
     * 更新者
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private String updateBy;

    /**
     * 更新时间
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private Date updateTime;

    /**
     * 备注
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private String remark;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sys_user
     *
     * @mbg.generated Mon Feb 08 13:33:51 CST 2021
     */
    private static final long serialVersionUID = 1L;
}